package org.greatstorm.dao;

import java.util.List;

import org.greatstorm.dao.impl.CategoryDaoImpl;
import org.greatstorm.entity.EntityObject;

import com.google.inject.ImplementedBy;

@ImplementedBy(CategoryDaoImpl.class)
public interface CategoryDao {

	void save(EntityObject mysqlCat);

	EntityObject getEntityByKey(String categoryKey);

	EntityObject getCategoryByName(String name);

	void deleteAll();

	void update(EntityObject category);

	List<EntityObject> getAll(int pageno, int pagesize);

	List<EntityObject> getAll();

}
